home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
util
/
wrap_1.00
/
Wrap.doc
< prev
next >
Wrap
Text File
|
1990-03-04
|
3KB
|
56 lines
Wrap V1.00 is Copyright (c)1990 by Dave Schreiber. All rights reserved.
This program is freely distributable, and may not be sold. Money may be
charged for copying, media, shipping/handling, labels, taxes, and related
costs.
Wrap is a simple text formatter designed to word-wrap text files that
have no carriage returns in paragraphs. I wrote it because my word
processor, Write & File (never heard of it? Imagine a scaled down version
of Pen Pal, written by Pen Pal's author), when it saves a document as
straight ASCII, only has carriage returns at the end of paragraphs. This is
nice when I import something into a desktop publishing program, but not when
I use Write & File to write program documentation such as the documentation
you're reading now. I could insert carriage returns manually, but that's a
lot of work for 3 page docs, and if I make one change in the documentation,
I have to reformat the whole thing over again.
But enough of justifying Wrap's existence. Wrap's command line should
look like this:
1> Wrap [options] <infile> <outfile>
<infile> is the name of the unformatted text and <outfile> is the filename
you want the formatted text saved under. The options are:
-a# -- expand TABs out # spaces (default: 5 spaces)
-b# -- set a bottom margin of # (default: 0)
-t# -- set a top margin of # (default: 0)
-r# -- set a right margin of # (default: 0)
-l# -- set a left margin of # (default: 0)
-i# -- number of spaces to indent each paragraph
(default: 0)
-p# -- number of lines in a page (default: 66)
-d -- use double spacing (single spacing is the
default)
The line width is set at 79 characters. To format a text file to fit into a
CLI window, I'd recommend a right margin of two. If you want to send the
file to a printer, set the bottom and top margins to suit the printer. If
the printer supports less or more than 66 lines per page, -p lets you set
that. If you forgot to indent your paragraphs, -i will let you set that.
If you indent them with TABs, -a will let you control how many spaces are
inserted in place of a TAB.
That's it. Any questions, comments, praise, etc. should be sent to the
e-mail address(es) below. Enjoy.
-Dave Schreiber
davids@slugmail.ucsc.edu (prefered, but flakey. If it doesn't work, try:
davids@ucscb.ucsc.edu (school year)
davids@cup.portal.com (summer, vacations, etc.))
P.S. Just to give you something to experiment with, I've included the
unformatted version of this documentation under the name "Wrap.unfmt".